package com.tfyt.pages;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * 页面访问类，直接返回客户端访问的页面
 * @author Administrator
 *
 */
@RestController
@RequestMapping("/pages")
public class PageController {
	@GetMapping("/{page}")
	public ModelAndView showPage(@PathVariable String page) {
		System.out.println("**********showPage***********" + page);
		return new ModelAndView(page);
	}
}